package com.tz.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by 许开涛 on 2016/10/9.
 */
@Component
public class ClassA {
    private ClassB b;
    private InterfaceC c;
    @Autowired
    public ClassA(ClassB b, InterfaceC c) {
        this.b = b;
        this.c = c;
    }

    public void a(){
        System.out.println("a的逻辑....");
       b.b();
       c.c();
    }
}
